public class Lab6_2
{
public static void main(String[]arqs)
{
String name="VERYGOOD";
System.out.println("In put String: VERYGOOD");
System.out.print("Out put String: ");
for(int i=name.length()-1;i>=0;i--)
{
System.out.print(name.charAt(i));
}
}
}